home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
autose1g
/
frmcover.frm
< prev
next >
Wrap
Text File
|
1999-06-24
|
20KB
|
714 lines
VERSION 5.00
Object = "{D2D9B7C1-7650-11D1-9481-00A0247B7657}#1.0#0"; "ZLIBOCX2.DLL"
Begin VB.Form frmCover
AutoRedraw = -1 'True
BackColor = &H00000000&
BorderStyle = 0 'None
Caption = "4000 A.D."
ClientHeight = 7290
ClientLeft = 510
ClientTop = 810
ClientWidth = 9585
ControlBox = 0 'False
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
HelpContextID = 30
Icon = "frmcover.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
PaletteMode = 1 'UseZOrder
ScaleHeight = 7290
ScaleWidth = 9585
WindowState = 2 'Maximized
Begin ZLIBOCX2LibCtl.zlibIF zlibTester
Height = 375
Left = 1935
OleObjectBlob = "frmcover.frx":030A
TabIndex = 7
Top = 5535
Visible = 0 'False
Width = 1500
End
Begin VB.PictureBox picStarfield2
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 2265
Left = 9015
ScaleHeight = 2265
ScaleWidth = 2760
TabIndex = 5
Top = 5505
Visible = 0 'False
Width = 2760
End
Begin VB.PictureBox picStarfield1
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 1620
Left = 9120
Picture = "frmcover.frx":0342
ScaleHeight = 1620
ScaleWidth = 2730
TabIndex = 6
Top = 3390
Visible = 0 'False
Width = 2730
End
Begin VB.Timer tmrOptions
Interval = 500
Left = 375
Top = 6090
End
Begin VB.Label lblVersionNumber
BackColor = &H00000000&
BackStyle = 0 'Transparent
Caption = "Version 2.5"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 465
Left = 7515
TabIndex = 8
Top = 3330
Width = 1545
End
Begin VB.Image imgTitle
Appearance = 0 'Flat
Height = 1800
Left = 585
Picture = "frmcover.frx":18EC4
Stretch = -1 'True
Top = 1335
Width = 8415
End
Begin VB.Shape Shape1
BorderColor = &H000000C0&
Height = 270
Left = 3750
Shape = 3 'Circle
Top = 6570
Width = 300
End
Begin VB.Label lblChoice
BackStyle = 0 'Transparent
Caption = "F3 Quit "
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 300
Index = 2
Left = 5205
TabIndex = 2
Top = 5460
Visible = 0 'False
Width = 1065
End
Begin VB.Label lblChoice
BackStyle = 0 'Transparent
Caption = "F2 Load A Game In Progress"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 330
Index = 1
Left = 5205
TabIndex = 1
Top = 5010
Visible = 0 'False
Width = 3675
End
Begin VB.Label lblChoice
BackStyle = 0 'Transparent
Caption = "F1 Start A New Game"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 315
Index = 0
Left = 5220
TabIndex = 0
Top = 4590
Visible = 0 'False
Width = 2730
End
Begin VB.Label lblCopyright2
BackColor = &H00000000&
BackStyle = 0 'Transparent
Caption = "1998-99, Gordon Stewart"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 270
Left = 4095
TabIndex = 4
Top = 6600
Width = 2280
End
Begin VB.Label lblCopyright1
BackColor = &H00000000&
BackStyle = 0 'Transparent
Caption = "C"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 240
Left = 3810
TabIndex = 3
Top = 6585
Width = 225
End
End
Attribute VB_Name = "frmCover"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim blue, red
Public StarsDrawn As Boolean
Private Sub Form_Activate()
Randomize
If StarsDrawn = False Then
'draw white stars on the screen
Dim a, X, Y
For a = 1 To 600
X = Int(Rnd * frmCover.ScaleWidth)
Y = Int(Rnd * frmCover.ScaleHeight)
frmCover.PSet (X, Y), vbWhite
Next a
'draw darker stars
Dim grey
grey = &H808080
For a = 1 To 800
X = Int(Rnd * frmCover.ScaleWidth)
Y = Int(Rnd * frmCover.ScaleHeight)
frmCover.PSet (X, Y), grey
Next a
'draw some blue stars
Dim blue
blue = &H800000
For a = 1 To 600
X = Int(Rnd * frmCover.ScaleWidth)
Y = Int(Rnd * frmCover.ScaleHeight)
frmCover.PSet (X, Y), blue
Next a
StarsDrawn = True 'prevent screen being redrawn later, if user chooses to continue game
End If
End Sub
Pri